package com.android.common.utils;

import android.os.Parcel;
import android.webkit.JavascriptInterface;
import com.android.common.mvp.view.webview.CommonWebViewJsBridge;

public class WebViewJsBridge extends CommonWebViewJsBridge {

    @Override
    @JavascriptInterface
    public void jsCall(String methodName, String parameter, String callBackMethodName) {
        super.jsCall(methodName,parameter,callBackMethodName);
        LogUtil.d("WebViewJsBridge","methodName = " +methodName + " parameter = " +parameter+" callBack = " + callBackMethodName);

    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }

    public static final Creator<WebViewJsBridge> CREATOR = new Creator<WebViewJsBridge>() {
        @Override
        public WebViewJsBridge createFromParcel(Parcel in) {
            WebViewJsBridge jsBridge = new WebViewJsBridge();
            return jsBridge;
        }

        @Override
        public WebViewJsBridge[] newArray(int size) {
            return new WebViewJsBridge[size];
        }
    };

}
